<!DOCTYPE html>
<html>
<head lang="en">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0,user-scalable=no"/>
    <meta charset="UTF-8">
    <title>深呼吸报名关注二维码</title>
    <!--<link rel="stylesheet" href="__PUBLIC__/css/formGlobal.css"/>-->

    <style>
        body{
            padding: 0;
            margin: 0;
        }
    </style>

</head>
<body>
<div id="layer1" style="position:absolute; width:100%; height:100%; z-index:-1">
    <img src="__PUBLIC__/img/weiguanzhu.jpg" height="101%" width="100%"/>
</div>
<img id ="aa" src=" {$path}" alt="" style="position: absolute;top:23%;left: 25%;height: 35%;width: 50%;"/>

<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
    $(document).ready(function() {
        //初始化分享
        fenxiang("青春青运丨点赞小青果 传递正能量");
        function fenxiang(title,desc){
            //微信分享
            wx.config({
                debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
                appId: "{:C('APPID')}", // 必填，公众号的唯一标识
                timestamp: "{$wxKey['timestamp']}", // 必填，生成签名的时间戳
                nonceStr: "{$wxKey['noncestr']}", // 必填，生成签名的随机串
                signature: "{$wxKey['signature']}",// 必填，签名，见附录1
                jsApiList: ['onMenuShareTimeline','onMenuShareAppMessage'] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
            });
            wx.ready(function () {
                var shareData = {
                    title: title,
                    desc: desc,
                    link: "http://tp.nidjia.com{:U('Home/Index/notice')}?way={:S('type_'.$_SESSION['userid'])}",
                    imgUrl: "{:C('APP_URL')}/Public/img/logo.jpg"
                };
                wx.onMenuShareAppMessage(shareData);
                wx.onMenuShareTimeline(shareData);
            });
            wx.error(function(res){
                alert(res.errMsg);
            });
        }
        $(".share").tap(function(){
            $(".wx-share").removeClass("hidden");
        });
        $(".wx-share").tap(function(){
            $(".wx-share").addClass("hidden");
        });
    });

</script>
</body>
</html>